package com.qifan.alb2b.service;

import org.springframework.stereotype.Service;
import com.qifan.alb2b.dao.ShoppingInfoDao;
import com.qifan.alb2b.domain.ShoppingInfoDomain;
import com.qifan.alb2b.util.DataGridModel;
import com.qifan.alb2b.util.Page;

/**
 * 购物业务对象
 * 
 * @author hc24
 * 
 */
@Service
public class ShoppingInfoService {
	private ShoppingInfoDao shoppingInfoDao;

	public void setShoppingInfoDao(ShoppingInfoDao shoppingInfoDao) {
		this.shoppingInfoDao = shoppingInfoDao;
	}

	public Page query(DataGridModel dgm, ShoppingInfoDomain sid) {
		return shoppingInfoDao.query(dgm, sid);
	}

	public ShoppingInfoDomain getShoppingById(String sid) {
		return shoppingInfoDao.getShoppingById(sid);
	}

	public void add(ShoppingInfoDomain shoppingInfoDomain) {
		shoppingInfoDao.add(shoppingInfoDomain);
	}

	public void update(ShoppingInfoDomain shoppingInfoDomain) {
		shoppingInfoDao.update(shoppingInfoDomain);
	}

	public void delete(String[] ids) {
		shoppingInfoDao.delete(ids);
	}
}
